package xyz.second.database.portal.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 请假表
 * </p>
 *
 * @author qjw
 * @since 2021-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("vacation")
public class Vacation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 请假表编号
     */
    @TableId(value = "vacation_id", type = IdType.AUTO)
    private Integer vacationId;

    /**
     * 请假学生id
     */
    @TableField("student_id")
    private Integer studentId;

    /**
     * 提交时间
     */
    @TableField("vacation_submitdate")
    private LocalDateTime vacationSubmitdate;

    /**
     * 请假主题
     */
    @TableField("vacation_theme")
    private String vacationTheme;

    /**
     * 请假原因
     */
    @TableField("vacation_reason")
    private String vacationReason;

    /**
     * 原因说明
     */
    @TableField("vacation_explain")
    private String vacationExplain;

    /**
     * 请假开始时间
     */
    @TableField("vacation_begindate")
    private LocalDateTime vacationBegindate;

    /**
     * 请假结束时间
     */
    @TableField("vacation_enddate")
    private LocalDateTime vacationEnddate;

    /**
     * 审批状态
     */
    @TableField("vacation_status")
    private String vacationStatus;

    /**
     * 附件
     */
    @TableField("vacation_attachment")
    private String vacationAttachment;


}
